package cn.yunhe.test;

import cn.yunhe.dao.AdminMapper;
import cn.yunhe.pojo.Admin;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

public class demo {
    SqlSession session = SqlSessionFactoryUtil.getSession();
    AdminMapper adminMapper =session.getMapper(AdminMapper.class);
    @Test
    public void test1(){
        Admin admin = new Admin(5,"jujingyi");
       int a = adminMapper.addMin(admin);
System.out.println(a);
       session.commit();
       ///修改修改
    }

}
